package com.shop.cereshop.agent.service.voucher.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.shop.cereshop.agent.dao.voucher.AgentFeeStandardDAO;
import com.shop.cereshop.agent.service.voucher.AgentFeeStandardService;
import com.shop.cereshop.commons.domain.voucher.AgentFeeStandard;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgentFeeStandardServiceImpl extends ServiceImpl<AgentFeeStandardDAO, AgentFeeStandard>
    implements AgentFeeStandardService {

  @Autowired
  private AgentFeeStandardDAO agentFeeStandardDAO;

  @Override
  public List<AgentFeeStandard> getList(String search, Integer page, Integer pageSize) {
    // 创建分页参数
    PageHelper.startPage(page, pageSize);
    return agentFeeStandardDAO.getList(search);
  }
}